home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950528-19950726 / 000035_news@columbia.edu_Wed May 31 06:39:30 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA21298
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Fri, 2 Jun 1995 05:51:38 -0400
  3. Received: by apakabar.cc.columbia.edu id AA20721
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Fri, 2 Jun 1995 05:51:36 -0400
  5. Path: news.columbia.edu!sol.ctr.columbia.edu!howland.reston.ans.net!gatech!news.mathworks.com!news.kei.com!nntp.et.byu.edu!news.provo.novell.com!news.cs.utah.edu!cc.usu.edu!jrd
  6. From: jrd@cc.usu.edu (Joe Doupnik)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: Kermit scripting problems
  9. Message-Id: <1995May31.123930.52861@cc.usu.edu>
  10. Date: 31 May 95 12:39:30 MDT
  11. References: <D9G96t.7DF@cunews.carleton.ca>
  12. Organization: Utah State University
  13. Lines: 42
  14. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  15.  
  16. In article <D9G96t.7DF@cunews.carleton.ca>, rmallett@boris.carleton.ca (Rick Mallett) writes:
  17. > I've written some scripts to automate upload using kermit for
  18. > users of a text based menu interface to Unix. I prompt the users for a
  19. > list of files to upload and I would like to allow responses such as
  20. > the following:
  21. > Enter list of files to upload: c:\autoexec.bat c:\temp\*.*
  22. > I've run into a couple of problems and I was wondering if anyone
  23. > could give me some advice. I'm using expect/tcl to automatically
  24. > generate sequences of instructions such as the following:
  25. >    apc server
  26. >    set command quoting off
  27. >    remote cd c:\
  28. >    get autoexec.bat
  29. >    remote cd c:\temp
  30. >    get *.*
  31. >    set command quoting on
  32. >    fin 
  33. >    apc connect
  34. > which will be executed by Unix kermit-5A-190 on the assumption that
  35. > the remote machine is running MS-Kermit 3.14.
  36. > One problem is that if the directory `c:\temp' does not exist the 
  37. > `get *.*' will upload all of the files in the current directory.
  38. > I tried adding `if success get*.*' immediately after the command
  39. > `remote cd c:\temp' but that doesn't work, presumably because the
  40. > status on the remot
  41.  machine is not available for checking. Is 
  42. > there any way for me to detect in a script if the `remote cd'
  43. > worked or not, and if not, is there a better way to do this?
  44. > I also found that `remote cd c:' was not the same as `remote cd c:\',
  45. > so I appended `\' to the string but then `remote cd c:\temp\' 
  46. > seemed to fail. Is this a bug?
  47. ----------
  48.     No, it's not a bug. It's DOS syntax. cd c: means to the current
  49. directory on drive C (which DOS remembers), cd c:\ is to the root of
  50. drive C, etc. Only the root path ends on a backslash.
  51.     Rather than issuing cd's just include the path with the wildcards,
  52. as in   get c:\temp\*.*.
  53.     Joe D.